package com.culture.config.model.po;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Range;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain=true)
@NoArgsConstructor
public class MenuUpdatePO {
    @NotNull(message="id can't be empty.")
    Long id;
    @NotNull(message="parentId can't be empty.")
    Long parentId;
    @NotBlank(message="menuName can't be empty.")
	String menuName;	
	String menuPath;
	String menuIco;	
    @Range(min=0,max=1,message = "must be 0 or 1")
	Integer status;	
    Integer sortIndex;
    @Range(min = 0,max = 1,message = "must be 0 or 1")
    Integer isLeaf = 0;	
}
